bitkeeper revision 1.365 (3f17b6f6yztKm7xcl6wlzwddpoCpCQ)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Fri, 18 Jul 2003 08:59:34 +0000 (08:59 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Fri, 18 Jul 2003 08:59:34 +0000 (08:59 +0000)
ioport.c:
  Make ioperm() quieter in Xenolinux.

xenolinux-2.4.21-sparse/arch/xeno/kernel/ioport.c

index 172cc802c93af7afa143967590d89e7056efd2d2..ed6dbbc3c504fe9419a19ab77fed87bab06db907 100644 (file)
@@ -40,14 +40,9 @@ asmlinkage int sys_iopl(unsigned int new_io_pl)
 
 asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int turn_on)
 {
-    if ( turn_on )
-        {
-        printk("ioperm not fully supported - set iopl to 3\n");
-        return sys_iopl(3);
-       }
-    else
-        printk("ioperm not fully supported - ignore resource release\n");
-    return 0;
+    printk(KERN_INFO "ioperm not fully supported - %s\n",
+           turn_on ? "set iopl to 3" : "ignore resource release");
+    return turn_on ? sys_iopl(3) : 0;
 }